package com.cy.mall.model.dto.fujue;

import lombok.Data;

/**
 * @Description 富爵请求接口结果返回参数
 * @Author tanyilin
 * @Date 2019/3/25 11:54
 */
@Data
public class FujueResultDTO {

    /** 返回码：0000：推送成功， 0001：推送失败 */
    private String rtCode;

    /** 信息描述 */
    private String rtMsg;

    public static FujueResultDTO success(String rtMsg) {
        FujueResultDTO resultDTO = new FujueResultDTO();
        resultDTO.setRtCode("0000");
        resultDTO.setRtMsg(rtMsg);
        return resultDTO;
    }

    public static FujueResultDTO fail(String rtMsg) {
        FujueResultDTO resultDTO = new FujueResultDTO();
        resultDTO.setRtCode("0001");
        resultDTO.setRtMsg(rtMsg);
        return resultDTO;
    }

}
